from PySide import QtGui

def editNodes(parent):
	editAction = QtGui.QAction(QtGui.QIcon('nodes.png'), 'Nodes', parent)
	editAction.setStatusTip('Edit Nodes')
	editAction.triggered.connect(parent.editnodes.show)
	return editAction

def editMembers(parent):
	editAction = QtGui.QAction(QtGui.QIcon('members.png'), 'Members', parent)
	editAction.setStatusTip('Edit Members')
	editAction.triggered.connect(parent.editmembers.show)
	return editAction

def editMaterials(parent):
	editAction = QtGui.QAction(QtGui.QIcon('materials.png'), 'Materials', parent)
	editAction.setStatusTip('Edit Materials')
	editAction.triggered.connect(parent.editmaterials.show)
	return editAction

def editLoads(parent):
	editAction = QtGui.QAction(QtGui.QIcon('loads.png'), 'Loads', parent)
	editAction.setStatusTip('Edit Loads')
	#editAction.triggered.connect(parent.fileio.edit)
	return editAction

def editFields(parent):
	editAction = QtGui.QAction(QtGui.QIcon('fields.png'), 'Fields', parent)
	editAction.setStatusTip('Edit Fields')
	#editAction.triggered.connect(parent.fileio.edit)
	return editAction
	
def editBoundaries(parent):
	editAction = QtGui.QAction(QtGui.QIcon('boundaryconditions.png'), 'Edit BCs', parent)
	editAction.setStatusTip('Edit Boundary Conditions')
	#editAction.triggered.connect(parent.fileio.edit)
	return editAction

def editSettings(parent):
	editAction = QtGui.QAction(QtGui.QIcon('settings.png'), 'Edit Settings', parent)
	editAction.setStatusTip('Edit Settings')
	editAction.triggered.connect(parent.editsettings.show)
	return editAction
